package com.example.demo.service.impl;

import com.example.demo.service.CustomerQueryService;
import com.example.demo.service.SgBStoTobOutNoticesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
public class CustomerQueryServiceImpl implements CustomerQueryService {

    @Autowired
    SgBStoTobOutNoticesService sgBStoTobOutNoticesService;



    /**
    * @Author: kangyang
    * @Description:
    * @DateTime: 2024/10/11 15:49
    * @Params: [id]
    * @Return java.lang.String
    */
    @Override
    public String queryCustomerNameById(Long id) {
        return "customer name";
    }

    @Override
    @Transactional
    public int updateNotices(long l) throws InterruptedException {
        Thread.sleep(3000000000L);
        int i1 = sgBStoTobOutNoticesService.updateNotices(l);
//        int i = 1/0;
        return i1;
    }

}
